package com.shangxia.monomer.study.designPatterns.creationType.factory.base;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

/**
 * @ProjectName: monomer
 * @ClassName: Fruit
 * @Time: 2021/7/18
 * @Author: zhouy
 * @Description:
 * @Experience:
 */

@Slf4j
@AllArgsConstructor
@NoArgsConstructor
public abstract class Fruit {
    private String name;
    private ColourEnum Color;

    public void say() {
        System.out.println("hello,I am " + name + " and I am " + Color.name());
    }

    public abstract String shape();
}
